<html>
<head>
<title>Smileys</title>

<?php echo js_insert_smiley('blog', 'comments'); ?>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>

<form name="blog">
<textarea name="comments" cols="40" rows="4"></textarea>
</form>

<p>Click to insert a smiley!</p>

<?php echo $smiley_table; ?>

<?php 
	foreach ($query->result() as $row)
	{
		$str = parse_smileys($row->text, "http://localhost/CodeIgniter/images/"); 
		echo $str;	
	}
 ?>
 
</body>
</html>